﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="PARTES.aspx.cs" Inherits="PC_AYUDA.Formulario_web17" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style3
        {
            width: 100%;
            background-image: url('Account/imagenes/PARTE.jpg');
        }
        .style4
        {
            height: 82px;
        }
        .style5
        {
            height: 73px;
        }
        .style6
        {
            height: 142px;
        }
        .style7
        {
            height: 82px;
            width: 525px;
        }
        .style8
        {
            height: 73px;
            width: 525px;
        }
        .style9
        {
            height: 142px;
            width: 525px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table class="style3">
        <tr>
            <td class="style7">
                <asp:Label ID="ID_PARTE" runat="server" Text="ID_PARTE"></asp:Label>
            </td>
            <td class="style4">
            </td>
        </tr>
        <tr>
            <td class="style8">
                <asp:Label ID="NOMBRE" runat="server" Text="NOMBRE"></asp:Label>
            </td>
            <td class="style5">
            </td>
        </tr>
        <tr>
            <td class="style9">
                <asp:Label ID="RESUMEN" runat="server" Text="RESUMEN"></asp:Label>
            </td>
            <td class="style6">
            </td>
        </tr>
    </table>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="ID_PARTE" DataSourceID="SqlDataSource1" 
        EmptyDataText="No hay registros de datos para mostrar." Width="937px">
        <Columns>
            <asp:BoundField DataField="ID_PARTE" HeaderText="ID_PARTE" ReadOnly="True" 
                SortExpression="ID_PARTE" />
            <asp:BoundField DataField="NOMBRE" HeaderText="NOMBRE" 
                SortExpression="NOMBRE" />
            <asp:BoundField DataField="RESUMEN" HeaderText="RESUMEN" 
                SortExpression="RESUMEN" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:PC-PARTESConnectionString %>" 
        DeleteCommand="DELETE FROM [PARTES] WHERE [ID_PARTE] = @ID_PARTE" 
        InsertCommand="INSERT INTO [PARTES] ([ID_PARTE], [NOMBRE], [RESUMEN]) VALUES (@ID_PARTE, @NOMBRE, @RESUMEN)" 
        ProviderName="<%$ ConnectionStrings:PC-PARTESConnectionString.ProviderName %>" 
        SelectCommand="SELECT [ID_PARTE], [NOMBRE], [RESUMEN] FROM [PARTES]" 
        UpdateCommand="UPDATE [PARTES] SET [NOMBRE] = @NOMBRE, [RESUMEN] = @RESUMEN WHERE [ID_PARTE] = @ID_PARTE">
        <DeleteParameters>
            <asp:Parameter Name="ID_PARTE" Type="String" />
        </DeleteParameters>
        <InsertParameters>
            <asp:Parameter Name="ID_PARTE" Type="String" />
            <asp:Parameter Name="NOMBRE" Type="String" />
            <asp:Parameter Name="RESUMEN" Type="String" />
        </InsertParameters>
        <UpdateParameters>
            <asp:Parameter Name="NOMBRE" Type="String" />
            <asp:Parameter Name="RESUMEN" Type="String" />
            <asp:Parameter Name="ID_PARTE" Type="String" />
        </UpdateParameters>
    </asp:SqlDataSource>
    <br />
</asp:Content>
